/*
 * @Author: Zhang Kai
 * @Date: 2021-11-04 21:05:36
 * @LastEditors: Zhang Kai
 * @LastEditTime: 2022-01-13 10:33:18
 * @FilePath: /metricsx-standard-ui/src/store/modules/derive.ts
 */
/**
 * 派生指标module
 */

const state = {
  drawerVisible: false,
  statisticalItem: undefined,
  atomItem: undefined,
  businessItem: undefined
};

const mutations = {
  toggleDrawerVisible(state: any, st: boolean) {
    state.drawerVisible = st;
  },
  getAtomItem(state: any, item: any) {
    state.atomItem = item;
  },
  getStatisticalItem(state: any, item: any) {
    state.statisticalItem = item;
  },
  getBusinessItem(state: any, item: any) {
    state.businessItem = item;
  }
};

const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
